package foodmaterial.service.impl;

import foodmaterial.dao.HistoryOrderDao;
import foodmaterial.dto.OrdersDto;
import foodmaterial.entity.Orders;
import foodmaterial.entity.OrdersDetail;
import foodmaterial.entity.OrdersRecipe;
import foodmaterial.service.HistoryOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HistoryOrderServiceImpl extends BaseService implements HistoryOrderService {

    @Autowired
    private HistoryOrderDao dao ;

    @Override
    public List<Orders> queryOrders(OrdersDto dto) {
        return dao.selectOrders(dto);
    }

    @Override
    public List<OrdersDetail> queryOrdersDetail(Long ordersId) {
        return dao.selectOrdersDetail(ordersId);
    }

    @Override
    public List<OrdersRecipe> queryOrdersRecipe(Long ordersId) {
        return dao.selectOrdersRecipe(ordersId);
    }
}
